<%@ page language="java" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<style>
.pageFormContent label{width: 80px;}
.pageFormContent p{width:95%;}
.pageFormContent p a{line-height: 20px;padding-left:5px;color:#575757; text-decoration: none;}
span.error{left: 280px;}
</style>
<div class="pageContent">
	<form method="post" action="saveEmp?callbackType=closeCurrent" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone);">
		<div class="pageFormContent" layoutH="58">
			<p>
				<label>用户姓名：</label>
				<input name="userName" type="text" maxlength="16" size="30" value=""  class="required"/>
			</p> 
			<p>
				<label>用户电话：</label>
				<input name="telephone" maxlength="32"  type="text" size="30" value="" />
			</p>
			<p>
				<label>用户手机：</label>
				<input name="userMobile" maxlength="32"  type="text" size="30" value="" />
			</p>
			<p>
				<label>用户邮箱</label>
				<input type="text" name="userEmail" maxlength="32" value="" class="required email" size="30" />
				<a>(注: 邮箱为默认的系统登录账号)</a>
			</p>
			<p>
				<label>密 码:</label>
				<input type="text" name="password" value="" minlength="6" maxlength="16"  size="30" class="required alphanumeric" />
				<a>(注: 6~16位的数字,字母下划线组合)</a>
			</p>
			<p style="height: 60px;">
				<label>备 注:</label>
				<textarea rows="3" cols="27" name="userDesc"></textarea>
			</p>
			<p style="margin-top: -20px;"></p>
			 <p>
				<label>角 色:</label> 
				<span>
				<select style="width: 80%;" class="combox" name="roleId">
					<option value="0">-选择角色-</option>
			 	 	<c:forEach var="role" items="${roleList}" varStatus="status">
			 			<option value="${role.id }" >${role.roleName }</option>
			 		</c:forEach>
			 	</select>
			 	</span>
			</p>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>
	</form>
</div>
